package com.reportgenerate.marketreport.exception;

/**
 * @program: reportgenerate
 * @Description: 删除对象失败
 * @author: Mr.Cheng
 * @Email: ccelephant_518@126.com
 * @date: 2023/8/21 23:48
 */
public class DeleteObjectException extends RuntimeException{
    private String objectName;
    public DeleteObjectException(String objectName) {
        this.objectName = objectName;
    }

    /**
     * Constructs a new runtime exception with the specified detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     *
     * @param message the detail message. The detail message is saved for
     *                later retrieval by the {@link #getMessage()} method.
     */
    public DeleteObjectException(String message, String objectName) {
        super(message);
        this.objectName = objectName;
    }

    public String getObjectName() {
        return objectName;
    }
}
